libmystdio.so:mystdio.o mystring.o
	gcc -o $@ $^ -shared
%.o:%.c
	gcc -fPIC -o $@ -c $<
.PHONY:clean
clean:
	rm -rf *.o *.so
.PHONY:output
output:
	mkdir -p stdc/include
	mkdir -p stdc/lib
	cp -rf *.c stdc/include
	cp -rf *.so stdc/lib
	tar -czf stdc.tgz stdc
t.o:t.c
	gcc -o $@ -c $^
t.exe:t.o
	gcc -o $@ $^
